﻿
{extend name="login/login" /}
{block name='loginmain'}
<div class="wrap loginbox">
    <div class="login">
        <ul class="tab_nav clearfix">
            <li onclick="selectUtype('xs')">求职用户</li>
            <li onclick="selectUtype('qy')">企业用户</li>
        </ul>
        <!-- {:url('index/login/reguser')} -->
        <form method="post" action="" name="frm">
            <input type="hidden" name="utype" id="utype" value="1"/>
            <div class="tab_cont">
                <ul>
                    <li><input placeholder="手机号" class="txt" type="text" name="username" id="username"></li>
                    <li><input placeholder="设置密码" class="txt" type="password" name="pwd" id="pwd"></li>
                    <li><input placeholder="确认密码" class="txt" type="password" name="repwd" id="repwd"></li>
                    <li><button id="send_auth" class="num fr" type="button">获取验证码</button><input placeholder="手机验证" class="txt02" type="text" name="auth" id="auth"></li>
                    <li><input type="checkbox"><label class="ml5">我已阅读并同意<a class="fontC03" href="index.php?act=agreement">《兼职乐用户协议》</a></label></li>
                </form>
                <li><input value="立即注册" class="btn" type="button"  id="regist"></li>
                <li class="fontS12 center">已有账号，<a class="fontC03 enter" href="login.php">立即登录<i></i></a></li>
            </ul>
        </div>
    </div>
</div>
{/block}

<div class="foot mt30">
	<div class="wrap center">©2015 河北乐聘人力资源服务有限公司 丨 兼职乐，专属兼职神器 丨 冀ICP备15013734</div>
</div>
<div class="gotop"></div>
{block name='loginjs'}
<script type="text/javascript" language="javascript" src="__MYINDEXJS__jquery-1.7.2-min.js"></script>
<script type="text/javascript" language="javascript" src="__MYINDEXJS__common.js"></script>
<script type="text/javascript">
	var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1268697534'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1268697534%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
</script>

<script>
    $(function(){
        $('#send_auth').click(function(){
                var username = $('#username').val();
                ajax_url = '/index/login/sendauth';                
                $.ajax({
                    url: ajax_url,
                    timeout: 5000,
                    type: "post",
                    dataType: "json",
                    data:{'username':username},
                    error:function(){
                    },
                    success:function(rs){
                        // console.log(rs);
                    }
                });
        });
    });
</script>
{/block}
</body>
</html>

